package com.bxkc.generator.constant;

import java.util.HashMap;
import java.util.Map;

/**
 * @author zhanxiumei
 */
public class VMConstant {

    /**
     * 模版相关信息对象，key:模版文件路径，value:要输出的文件名
     */
    private static Map<String, String> templatePath = new HashMap<>();

    static {
        templatePath.put("template/aop/ServiceException.vm", "aop/ServiceException.java");
        templatePath.put("template/aop/ServiceExceptionHander.vm", "aop/ServiceExceptionHander.java");
        templatePath.put("template/controller/ClassController.vm", "controller/###Controller.java");
        templatePath.put("template/dao/ClassDao.vm", "dao/###DAO.java");
        templatePath.put("template/domain/do.vm", "domain/###DO.java");
        templatePath.put("template/dto/dto.vm", "dto/###DTO.java");
        templatePath.put("template/service/ClassService.vm", "service/###Service.java");
        templatePath.put("template/service/impl/ClassServiceImpl.vm", "service/impl/###ServiceImpl.java");
        templatePath.put("template/vo/vo.vm", "vo/###VO.java");
        templatePath.put("template/mapper/Mapper.vm", "resources/mybatis/###Mapper.xml");
        templatePath.put("template/enums/ClassEnums.vm", "enums/###ResponseEnums.java");
        templatePath.put("template/sql/sql.vm", "sql/sysMenu.sql");




    }

    public static Map<String, String> getTemplatePath() {
        return templatePath;
    }
}
